<template>
  <div>
    <div class="list" >
      <div class="touxiang">
        <img
          :src="`http://liufusong.top:8080${item.houseImg}`"
          alt=""
        />
      </div>
      <div class="jieshao">
        <h3>{{item.title}}</h3>
        <div class="guige">{{item.desc}}</div>
        <div class="weizhi">
          <span>{{item.tags[0]}}</span>
        </div>
        <div class="jiage"><span>{{item.price}}</span>”元/月”</div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      required: true
    }
  }
}
</script>

<style lang="less" scoped>
.list {
  height: 120px;
  position: relative;
  box-sizing: border-box;
  justify-content: space-around;
  padding-top: 18px;
  border-bottom: 1px solid #e5e5e5;
  .touxiang {
    float: left;
    width: 106px;
    height: 80px;
    img{
      width: 106px;
    height: 80px;
    }
  }
  .jieshao{
    position: absolute;
    overflow: hidden;
    line-height: 22px;
    left: 120px;
    bottom: 10px;
    h3{
      overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    }
    .guige{
      font-size: 12px;
    color: #afb2b3;
    }

  .weizhi{
        color: #39becd;
    background: #e1f5f8;
  }
  .jiage{
    font-size: 12px;
    color: #fa5741;
    span{
      font-size: 16px;
    font-weight: bolder;
    }
  }
  }
}
</style>
